<template>
    <div class="right-container">
        <h2>Right</h2>
    </div>
</template>

<script>
    export default {
        activated() {
            console.log('======== MyRight组件被激活')
        },
        deactivated() {
            console.log('======== MyRight组件失活了')
        }
    }
</script>

<style lang="less" scoped>
.right-container {
    background-color: burlywood;
}
</style>